package blog.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import blog.entity.Category;
import blog.mapper.CategoryMapper;

/**
 * 分类
 */
@Service
public class CategoryServiceImpl implements CategoryService {
	@Resource
	private CategoryMapper categoryMapper;

	/**
	 * 统计分类数量
	 */
	public Integer countCategory() {
		return categoryMapper.countCategory();
	}

	/**
	 * 查询分类信息列表
	 */
	public List<Category> listCategory() {
		return categoryMapper.listCategory();
	}
	
}
